<?php
	require_once('lib/XmlSource.php');
	require_once('lib/Router.php');
	require_once('lib/Controller.php');
	require_once('lib/functions.php');
	require_once('lib/ModelObject.php');
	require_once('lib/OwnedObject.php');
	
	require_once('xajax/xajax.inc.php');

	session_start();
	$ruri = $_SERVER['REQUEST_URI'];
	$routes = new Router();

	require_once('config.routes.php');
	require_once('config.db.php');

	mysql_connect(DB_HOST, DB_LOGIN, DB_PASSWORD);
	mysql_select_db(DB_NAME);
	mysql_query('SET NAMES utf8');

?>